#ifndef   __SCAN_H__
#define   __SCAN_H__

#include "cudpp/cudpp.h"

class Scan {
public: // methods

    Scan(unsigned int maxElements);
    ~Scan();
    void CriaOffset(unsigned int* countDevice, unsigned int* offSetDevice, unsigned int numElements);


public:

protected: // data

    CUDPPHandle mScanPlan; // CUDPP plan handle for prefix sum

protected: // methods
    void initialize(unsigned int numElements);
};


#endif // __SCAN_H__